updating oE option_switches

option_switches

<built-in> function option_switches() 

Retrieves the list of switches passed to the interpreter on the command line. Note that there are a number of switches that are automatically added by eui or by the eu.cfg file (if found). So even if your command line contains no switches, such things as the platform and default include directory will be shown.

Returns:

A sequence, of strings, each containing a word related to switches.

Comments:

All switches are recorded in upper case.

Test Program:
---------------- 
-- example.ex -- 
---------------- 
include std/console.e 
 
display(option_switches()) 
 
Example 1:

$>eui example.ex

Results:

{ 
  "-d", 
  "E64", 
  "-i", 
  "~/demos", 
  "-i", 
  "/usr/local/include", 
  "-eudir", 
  "/usr/local/include" 
} 

Example 2:

$>eui -d VERSION -d BATCH example.ex

Results:

{ 
  "-d", 
  "VERSION", 
  "-d", 
  "BATCH", 
  "-d", 
  "E64", 
  "-i", 
  "~/demos", 
  "-i", 
  "/usr/local/include", 
  "-eudir", 
  "/usr/local/include" 
} 

See Also:

Command line switches

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu